<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { openSocket } from '@/api/websocket'
export default {
  name: 'App',
  mounted() {
    openSocket() // 初始化websocket
  }
}
</script>
<style lang="scss" scoped>
#app {
  background: url("~@/assets/images/bj.png") no-repeat center center fixed;
  background-size: 100% 100%;
}
</style>
